package com.stormrage.entity.student.rep;

import java.io.Serializable;
import java.util.Date;

import com.stormrage.entity.student.StuNotice;

public class StuNoticeRep implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = 873252966471399104L;

	// ------------------------------- Fields -------------------------------

	private Integer seq;

	private Integer id;

	private String title;

	private Date datetime;

	// ------------------------------- Fields -------------------------------

	public StuNoticeRep() {
	}

	// ------------------------------- Fields -------------------------------

	public Integer getSeq() {
		return seq;
	}

	public void setSeq(Integer seq) {
		this.seq = seq;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Date getDatetime() {
		return datetime;
	}

	public void setDatetime(Date datetime) {
		this.datetime = datetime;
	}

	// ------------------------------- Fields -------------------------------

	public static StuNoticeRep instance(StuNotice arg0, Integer seq) {
		StuNoticeRep entity = new StuNoticeRep();
		entity.setSeq(seq);
		entity.setId(arg0.getId());
		entity.setTitle(arg0.getTitle());
		entity.setDatetime(arg0.getDatetime());
		return entity;
	}

	@Override
	public String toString() {
		return this.getClass() + " : seq - " + seq + " id - " + id + " title - " + title + " datetime - " + datetime;
	}

}
